//
//  ApplyInstituChooseCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/10/13.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "ApplyInstituChooseCell.h"

@implementation ApplyInstituChooseCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size:15];
        self.titleLabel.font = [UIFont systemFontOfSize:15];
        self.titleLabel.textColor = COLOR_HEX(0x121212);
        self.titleLabel.text = @"所有机构类型";
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.centerY.equalTo(self.contentView);
            make.top.equalTo(self.contentView.mas_top).offset(scaleTopAndBottom(15));
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(20));
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(250), scaleTopAndBottom(20)));
        }];
//        self.showView = [[InstituTypeShowView alloc] initWithFrame:CGRectMake(scaleLeftAndRight(10), scaleTopAndBottom(30), WIDTH - scaleLeftAndRight(20), scaleTopAndBottom(80) * self.showView.dataArray.count)];
//        self.showView.backgroundColor = [UIColor redColor];
//        [self.contentView addSubview:self.showView];
//        [self.showView mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
//            make.top.equalTo(self.titleLabel.mas_bottom).offset(scaleTopAndBottom(10));
//            make.bottom.equalTo(self.contentView.mas_bottom).offset(scaleTopAndBottom(-10));
//            make.right.equalTo(self.contentView.mas_right).offset(scaleTopAndBottom(-10));
//        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
